package org.zfes.snowier.cloud.zbss.cms.content.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.content.model.CmsContent;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsContentMapper extends BaseMapper<CmsContent>{
	
	Long selectListCount(ParamMap params);
	List<Record> selectMapListPage(ParamMap params);
	List<CmsContent> selectModelListPage(ParamMap params);
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
    int updateLinkUrl(@Param("id")Long id, @Param("linkUrl")String linkUrl);
	int updateAddViewCount(@Param("id")Long id, @Param("countz")Integer countz);
	int updateAddFavoriteCount(@Param("id")Long id, @Param("countz")Integer countz);
	int updateAddUpCount(@Param("id")Long id, @Param("countz")Integer countz);
	int updateAddCommentCount(@Param("id")Long id, @Param("countz")Integer countz);
	int updateAddForwardCount(@Param("id")Long id, @Param("countz")Integer countz);
	int updateAddShareCount(@Param("id")Long id, @Param("countz")Integer countz);
	int updateAddDownloadcount(@Param("id")Long id, @Param("countz")Integer countz);
	
 
}
